﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlyweightPattern;

public class S : BaseWord
{
    private static readonly S  _s = new S();
    public static S GetInstance()=> _s;
    private S()
    {
        Task.Delay(1000).Wait();
        Console.WriteLine($"{this.GetType().Name} 被构造了....");
    }
    public override string Get()
    {
        return this.GetType().Name;
    }
}
